package com.codemeta.bokit.sample.all.controller;

import cn.dev33.satoken.stp.SaTokenInfo;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hice
 * @date 2021/11/19
 */
@RestController
@RequestMapping("/member")
public class MemberController {

    @GetMapping("/detail")
    public SaTokenInfo detail() {
        return StpUtil.getTokenInfo();
    }
}